package com.nanrui.mutualinductor.data;

import java.util.HashMap;
import java.util.Map;


public class CheckData {

    public static float UNKNOW_VALUE = -999F;
    //CT
    //1
    public static final float[] CT_BI_1 = {UNKNOW_VALUE, 3.0F, 1.5F, 1.0F, 1.0F};
    public static final float[] CT_XIANG_1 = {UNKNOW_VALUE, 180F, 90F, 60F, 60F};

    //0.5
    public static final float[] CT_BI_2 = {UNKNOW_VALUE, 1.5F, 0.75F, 0.5F, 0.5F};
    public static final float[] CT_XIANG_2 = {UNKNOW_VALUE, 90F, 45F, 30F, 30F};

    //0.5s
    public static final float[] CT_BI_3 = {1.5F, 0.75F, 0.5F, 0.5F, 0.5F};
    public static final float[] CT_XIANG_3 = {90F, 45F, 30F, 30F, 30F};

    //0.2
    public static final float[] CT_BI_4 = {UNKNOW_VALUE, 0.75F, 0.35F, 0.2F, 0.2F};
    public static final float[] CT_XIANG_4 = {UNKNOW_VALUE, 30F, 15F, 10F, 10F};

    //0.2s
    public static final float[] CT_BI_5 = {0.75F, 0.35F, 0.2F, 0.2F, 0.2F};
    public static final float[] CT_XIANG_5 = {30F, 15F, 10F, 10F, 10F};

    //0.1
    public static final float[] CT_BI_6 = {UNKNOW_VALUE, 0.4F, 0.2F, 0.1F, 0.1F};
    public static final float[] CT_XIANG_6 = {UNKNOW_VALUE, 15F, 8F, 5F, 5F};

    //PT 1
    public static final float[] PT_BI_1 = {1.0F, 1.0F, 1.0F};
    public static final float[] PT_XIANG_1 = {40F, 40F, 40F};

    //0.5
    public static final float[] PT_BI_2 = {0.5F, 0.5F, 0.5F};
    public static final float[] PT_XIANG_2 = {20F, 20F, 20F};

    //0.2
    public static final float[] PT_BI_3 = {0.2F, 0.2F, 0.2F};
    public static final float[] PT_XIANG_3 = {10F, 10F, 10F};

    //0.1
    public static final float[] PT_BI_4 = {0.1F, 0.1F, 0.1F};
    public static final float[] PT_XIANG_4 = {5F, 5F, 5F};

    public static Map<Short, float[]> ctMapB = new HashMap<>();
    public static Map<Short, float[]> ctMapXING = new HashMap<>();

    public static Map<Short, float[]> ptMapB = new HashMap<>();
    public static Map<Short, float[]> ptMapXING = new HashMap<>();

    static {

        //CT_GRADES_NUMBER = new short[]{0, 1, 2, 3, 4};
        //CT_GRADES_STRING = new String[]{"0.5级", "0.2级", "0.1级", "0.5S级", "0.2S级"};
        ctMapB.put(DKPowerData.CT_GRADES_NUMBER[0], CT_BI_2);
        ctMapXING.put(DKPowerData.CT_GRADES_NUMBER[0], CT_XIANG_2);

        ctMapB.put(DKPowerData.CT_GRADES_NUMBER[1], CT_BI_4);
        ctMapXING.put(DKPowerData.CT_GRADES_NUMBER[1], CT_XIANG_4);

        ctMapB.put(DKPowerData.CT_GRADES_NUMBER[2], CT_BI_6);
        ctMapXING.put(DKPowerData.CT_GRADES_NUMBER[2], CT_XIANG_6);

        ctMapB.put(DKPowerData.CT_GRADES_NUMBER[3], CT_BI_3);
        ctMapXING.put(DKPowerData.CT_GRADES_NUMBER[3], CT_XIANG_3);

        ctMapB.put(DKPowerData.CT_GRADES_NUMBER[4], CT_BI_5);
        ctMapXING.put(DKPowerData.CT_GRADES_NUMBER[4], CT_XIANG_5);

        // PT_GRADES_NUMBER = new short[]{0, 1, 2};
        //        PT_GRADES_STRING = new String[]{"0.5级", "0.2级", "0.1级"};
        ptMapB.put(DKPowerData.PT_GRADES_NUMBER[0], PT_BI_2);
        ptMapXING.put(DKPowerData.PT_GRADES_NUMBER[0], PT_XIANG_2);

        ptMapB.put(DKPowerData.PT_GRADES_NUMBER[1], PT_BI_3);
        ptMapXING.put(DKPowerData.PT_GRADES_NUMBER[1], PT_XIANG_3);

        ptMapB.put(DKPowerData.PT_GRADES_NUMBER[2], PT_BI_4);
        ptMapXING.put(DKPowerData.PT_GRADES_NUMBER[2], PT_XIANG_4);


    }
}
